﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Kinect;
using Microsoft.Kinect.Toolkit;
using Microsoft.Kinect.Toolkit.Controls;
using System.IO;

namespace KinectProject.Pages
{
    /// <summary>
    /// Interaction logic for vas.xaml
    /// </summary>
    public partial class vas : Page
    {
        public int index = 1;

        public vas()
        {
            this.InitializeComponent();

            vasTextBox.Visibility = Visibility.Visible;
            //vasLabel1.Content = "No Pain";
            //vasLabel2.Content = "Worst Possible Pain";
            vasTextBox.Text = "How much pain do you expecet when reaching for this target?";
                    

        }
        public void getNextValues(int value){
            switch (index)
            {

                case 1:
                    log.pain = value; 
                    vasTextBox.Text = "How concerned are you about harming or injuring your back when reaching for this target?";                    
                    index++;
                    break;
                case 2:
                    log.harm = value;

                    vasTextBox.Text = "How anxious are you feeling right now?";
                    index++;
                    break;
                case 3:
                    log.anxiety = value;
                    vasTextBox.Text = "How much pain did you experience when reaching for this target?";
                    index++;
                    break;
                case 4:
                    log.epain = value;
                    index = 0;
                    break;
            }


        }

    }
}


